
package main

import (
	"fmt"
    "log"
	"net/http"
	"os"
)



func main() {
	p, _ :=os.Getwd()
	fmt.Println(p)
	
	http.Handle("/", http.FileServer(http.Dir(p)))
    log.Printf("About to listen on 10443. Go to https://127.0.0.1:10443/")
    // One can use generate_cert.go in crypto/tls to generate cert.pem and key.pem.
    // ListenAndServeTLS always returns a non-nil error.
    // err := http.ListenAndServeTLS(":10443", "/usr/bin/mycommand/cert.pem", "/usr/bin/mycommand/key.pem", nil)
    err := http.ListenAndServeTLS(":10443", "/root/OpenMind/mediasoup/mediasoup-demo/server/certs/server.pem", "/root/OpenMind/mediasoup/mediasoup-demo/server/certs/server.key.pem", nil)
    log.Fatal(err)
}
